export const formatSubData = function (data) {
  let subData: any = []
  Object.keys(data).forEach((item) => {
    if (data[item]) {
      subData.push({
        projectType: item,
        code: data[item],
      });
    }
  });
  if(import.meta.env.VITE_TRANSFORM_API === 'false'){
    return subData
  }else{
    return JSON.stringify(subData)
  }
}
